package com.crt.uav.annotation;

import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import com.crt.uav.domain.Result;

public interface SwaggerDocs {

    @ApiResponses({
            @ApiResponse(responseCode = "200", description = "成功",
                    content = @Content(mediaType = "application/json", schema = @Schema(implementation = Result.class))),
            @ApiResponse(responseCode = "500", description = "服务端错误",
                    content = @Content(mediaType = "application/json", schema = @Schema(implementation = Result.class)))
    })
    @interface StandardResponses {}
}